Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: update topics example to illustrate how to wait for subscription close #511

Merged
merged 1 commit into from
Sep 17, 2024

Conversation

cprice404
Copy link
Contributor

This commit updates the topic example to use a waitgroup for the
message polling goroutine(s). This way we can illustrate that the
goroutine exits cleanly after the subscription is closed.

…on close

This commit updates the topic example to use a waitgroup for the
message polling goroutine(s). This way we can illustrate that the
goroutine exits cleanly after the subscription is closed.
@cprice404 cprice404 requested review from anitarua and a team September 17, 2024 17:20
@cprice404 cprice404 merged commit 38843bf into main Sep 17, 2024
6 checks passed
@cprice404 cprice404 deleted the topic-example-waitgroup branch September 17, 2024 19:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants